|
2000W / 48V LLC Battery-Charger
V1.00
|
Versatile Analog to Digital Converter (VADC) driver for XMC microcontroller family. More...
|
Classes | |
| struct | XMC_VADC_SCAN_CONFIG |
| struct | XMC_VADC_CHANNEL_CONFIG |
| struct | XMC_VADC_QUEUE_ENTRY |
| struct | XMC_VADC_QUEUE_CONFIG |
| struct | XMC_VADC_GLOBAL_CLASS |
| struct | XMC_VADC_GLOBAL_CONFIG |
| struct | XMC_VADC_GROUP_CLASS |
| struct | XMC_VADC_GROUP_EMUXCFG |
| struct | XMC_VADC_GROUP_CONFIG |
| struct | XMC_VADC_RESULT_CONFIG |
| struct | XMC_VADC_GLOBAL_DETAILED_RESULT |
| struct | XMC_VADC_DETAILED_RESULT |
Macros | |
| #define | XMC_VADC_NUM_PORTS |
| #define | XMC_VADC_NUM_RESULT_REGISTERS (16U) /* Defines the number of result holding registers per ADC group */ |
| #define | XMC_VADC_NUM_CHANNELS_PER_GROUP (8U) |
Versatile Analog to Digital Converter (VADC) driver for XMC microcontroller family.
The XMC microcontroller provides a series of analog input channels connected to a cluster of Analog/Digital Converters using the Successive Approximation Register (SAR) principle to convert analog input values (voltages) to discrete digital values.
Each converter of the ADC cluster can operate independent of the others, controlled by a dedicated set of registers and triggered by a dedicated group request source. The results of each channel can be stored in a dedicated channel-specific result register or in a group-specific result register.
The Versatile Analog to Digital Converter module (VADC) of the XMC comprises a set of converter blocks that can be operated either independently or via a common request source that emulates a background converter. Each converter block is equipped with a dedicated input multiplexer and dedicated request sources, which together build separate groups.
The VADC LLD is split into GLOBAL and GROUP related APIs.
GLOBAL:
GROUP:
| #define XMC_VADC_NUM_CHANNELS_PER_GROUP (8U) |
Defines the number of ADC channels per group
Definition at line 295 of file xmc_vadc.h.
Referenced by XMC_VADC_GLOBAL_BackgroundAddChannelToSequence(), XMC_VADC_GLOBAL_BackgroundGetNumChannelsPending(), XMC_VADC_GLOBAL_BackgroundIsChannelPending(), and XMC_VADC_GLOBAL_BackgroundRemoveChannelFromSequence().
| #define XMC_VADC_NUM_PORTS |
Definition at line 290 of file xmc_vadc.h.
Referenced by XMC_VADC_GLOBAL_BackgroundSelectGating(), and XMC_VADC_GLOBAL_BackgroundSelectTrigger().
| #define XMC_VADC_NUM_RESULT_REGISTERS (16U) /* Defines the number of result holding registers per ADC group */ |
Definition at line 293 of file xmc_vadc.h.
Type defined the scan configuration structure for background Request Source
Definition at line 889 of file xmc_vadc.h.
| typedef enum XMC_VADC_BOUNDARY_SELECT XMC_VADC_BOUNDARY_SELECT_t |
Defines the boundary select for Channel. Use XMC_VADC_GROUP_BOUNDARY_FLAG_MODE_t for this enumeration.
| typedef enum XMC_VADC_CHANNEL_ALIAS XMC_VADC_CHANNEL_ALIAS_t |
Defines channel alias. All enum items are available for channels 0 and 1. Other Channels can accept only XMC_VADC_CHANNEL_ALIAS_DISABLED.
Defines the criteria for boundary flag assertion. Use XMC_VADC_CHANNEL_BOUNDARY_CONDITION_t for this enumeration.
| typedef enum XMC_VADC_CHANNEL_BOUNDARY XMC_VADC_CHANNEL_BOUNDARY_t |
Defines the references to boundary values used for limit checking feature. Each of these can be assigned as either an upper bound or a lower bound. Use XMC_VADC_CHANNEL_BOUNDARY_t for this enumeration.
| typedef enum XMC_VADC_CHANNEL_BWDCH XMC_VADC_CHANNEL_BWDCH_t |
Defines the voltage which the capacitor is charged to. Used in Broken wire detection feature. Use XMC_VADC_CHANNEL_BWDCH_t for this enumeration.
| typedef struct XMC_VADC_CHANNEL_CONFIG XMC_VADC_CHANNEL_CONFIG_t |
Structure initializing the VADC channel. Use type XMC_VADC_CHANNEL_CONFIG_t for this enumeration.
| typedef enum XMC_VADC_CHANNEL_CONV XMC_VADC_CHANNEL_CONV_t |
Defines the conversion classes that can be selected for each channel. The enumeration members holds the group or global classes. The conversion classes decides the properties of conversion, like resolution, sampling time etc Use XMC_VADC_CHANNEL_CONV_t for this enumeration.
| typedef enum XMC_VADC_CHANNEL_EVGEN XMC_VADC_CHANNEL_EVGEN_t |
Defines the criteria for event generation by the channel. Use XMC_VADC_CHANNEL_EVGEN_t for this enumeration.
| typedef enum XMC_VADC_CHANNEL_NR XMC_VADC_CHANNEL_NR_t |
Defines channel All enum items are available for channels 0 and 1.
| typedef enum XMC_VADC_CHANNEL_REF XMC_VADC_CHANNEL_REF_t |
Defines the reference voltage selection for conversion. Use XMC_VADC_CHANNEL_REF_t for this enumeration.
| typedef enum XMC_VADC_CONVMODE XMC_VADC_CONVMODE_t |
Defines the conversion mode. It defines the resolution of conversion. Use XMC_VADC_CONVMODE_t for this enumeration.
| typedef struct XMC_VADC_DETAILED_RESULT XMC_VADC_DETAILED_RESULT_t |
Detailed channel result structure
| typedef enum XMC_VADC_DMM XMC_VADC_DMM_t |
Defines the conversion result handling mode. Use XMC_VADC_DMM_t for this enumeration.
| typedef enum XMC_VADC_FAST_COMPARE XMC_VADC_FAST_COMPARE_t |
Defines the output of a fast compare mode. Use XMC_VADC_FAST_COMPARE_t for this enumeration.
| typedef enum XMC_VADC_GATE_INPUT_SELECT XMC_VADC_GATE_INPUT_SELECT_t |
Defines the external gating input selection possibilities, to gate the conversion requests. Refer the VADC interconnects section of the reference manual for details of peripherals which can be used. Also refer xmc_vadc_map.h file for detailed definitions of the peripherals which can take the control of these enumeration items. Use XMC_VADC_GATE_INPUT_SELECT_t for this enumeration.
| typedef enum XMC_VADC_GATEMODE XMC_VADC_GATEMODE_t |
Defines the condition for gating the conversion requests. It can be used to set the ENGT field of ASMR/BSMR/QMR register respectively for auto_scan/background_scan/queue request sources. Use XMC_VADC_GATEMODE_t for this enumeration.
| typedef struct XMC_VADC_GLOBAL_CLASS XMC_VADC_GLOBAL_CLASS_t |
Structure to initialize the global input class configuration. Configured parameters are sample time and conversion Mode.
| typedef struct XMC_VADC_GLOBAL_CONFIG XMC_VADC_GLOBAL_CONFIG_t |
Structure to initialize the VADC Global functions
| typedef struct XMC_VADC_GLOBAL_DETAILED_RESULT XMC_VADC_GLOBAL_DETAILED_RESULT_t |
Detailed global result structure
| typedef enum XMC_VADC_GLOBAL_EVENT XMC_VADC_GLOBAL_EVENT_t |
Defines the event which can lead to a global service request assertion. Use XMC_VADC_GLOBAL_EVENT_t for this enumeration.
| typedef VADC_GLOBAL_TypeDef XMC_VADC_GLOBAL_t |
Type defined the device header file vadc global register structure type to VADC type
Definition at line 301 of file xmc_vadc.h.
| typedef enum XMC_VADC_GROUP_ARBMODE XMC_VADC_GROUP_ARBMODE_t |
Defines the request source arbiter behavior. Use XMC_VADC_GROUP_ARBMODE_t for this enumeration.
Defines the various modes for the boundary flag. Use XMC_VADC_GROUP_BOUNDARY_FLAG_MODE_t for this enumeration.
| typedef struct XMC_VADC_GROUP_CLASS XMC_VADC_GROUP_CLASS_t |
Structure to initialize the group input class configuration. Configured parameters are sample time and conversion Mode.
| typedef struct XMC_VADC_GROUP_CONFIG XMC_VADC_GROUP_CONFIG_t |
Group Configuration Data Structures
| typedef enum XMC_VADC_GROUP_CONV XMC_VADC_GROUP_CONV_t |
Defines the reference to sample time and conversion mode settings. Use XMC_VADC_GROUP_CONV_t for this enumeration.
| typedef struct XMC_VADC_GROUP_EMUXCFG XMC_VADC_GROUP_EMUXCFG_t |
EMUX related configuration structure.
| typedef enum XMC_VADC_GROUP_EMUXCODE XMC_VADC_GROUP_EMUXCODE_t |
Defines the EMUX channel selection encoding scheme. Use XMC_VADC_GROUP_EMUXCODE_t for this enumeration.
| typedef enum XMC_VADC_GROUP_EMUXMODE XMC_VADC_GROUP_EMUXMODE_t |
Defines the EMUX mode of operation. Use XMC_VADC_GROUP_EMUXMODE_t for this enumeration.
| typedef enum XMC_VADC_GROUP_INDEX XMC_VADC_GROUP_INDEX_t |
Defines the group indices. Use XMC_VADC_GROUP_INDEX_t for this enumeration.
| typedef enum XMC_VADC_GROUP_IRQ XMC_VADC_GROUP_IRQ_t |
Defines the service request set used. Use XMC_VADC_GROUP_IRQ_t for this enumeration.
| typedef enum XMC_VADC_GROUP_POWERMODE XMC_VADC_GROUP_POWERMODE_t |
Defines the power modes of a VADC Group. Use XMC_VADC_GROUP_POWERMODE_t for this enumeration.
| typedef enum XMC_VADC_GROUP_RS_PRIORITY XMC_VADC_GROUP_RS_PRIORITY_t |
Defines the request source arbitration priority. Use XMC_VADC_GROUP_RS_PRIORITY_t for this enumeration.
| typedef enum XMC_VADC_GROUP_STATE XMC_VADC_GROUP_STATE_t |
Defines the status of a VADC group (also known as kernel). Use XMC_VADC_GROUP_STATE_t for this enumeration.
| typedef struct XMC_VADC_QUEUE_CONFIG XMC_VADC_QUEUE_CONFIG_t |
Structure initializing a VADC queue request source. Use type XMC_VADC_QUEUE_CONFIG_t.
| typedef struct XMC_VADC_QUEUE_ENTRY XMC_VADC_QUEUE_ENTRY_t |
Structure to initialize a queue entry. Use type XMC_VADC_QUEUE_ENTRY_t.
| typedef enum XMC_VADC_RESULT_ALIGN XMC_VADC_RESULT_ALIGN_t |
Defines the alignment of the converted result. Use XMC_VADC_RESULT_ALIGN_t for this enumeration.
| typedef struct XMC_VADC_RESULT_CONFIG XMC_VADC_RESULT_CONFIG_t |
Structure to initialize VADC Group result register.
| typedef enum XMC_VADC_RESULT_REG_NR XMC_VADC_RESULT_REG_NR_t |
| typedef uint16_t XMC_VADC_RESULT_SIZE_t |
Type defined the converted result size to unsigned 16 bit integer
Definition at line 300 of file xmc_vadc.h.
| typedef enum XMC_VADC_RESULT_SUBTRATION XMC_VADC_RESULT_SUBTRATION_t |
| typedef struct XMC_VADC_SCAN_CONFIG XMC_VADC_SCAN_CONFIG_t |
Structure initializing the VADC scan request source. Use type XMC_VADC_SCAN_CONFIG_t for this structure.
| typedef enum XMC_VADC_SCAN_LOAD XMC_VADC_SCAN_LOAD_t |
Defines the behavior of load event for the scan request source. Use XMC_VADC_SCAN_LOAD_t for this enumeration.
| typedef enum XMC_VADC_SCAN_TYPE XMC_VADC_SCAN_TYPE_t |
Defines the type of scan request source to be used. It can choose between auto scan and background scan request source methods. Use XMC_VADC_SCAN_TYPE_t for this enumeration.
| typedef enum XMC_VADC_SR XMC_VADC_SR_t |
Defines the various service requests lines. Each group can raise up to 4 service requests independently. While all groups together have the possibility of raising 4 module wide service requests. Use XMC_VADC_SR_t for this enumeration.
| typedef enum XMC_VADC_STARTMODE XMC_VADC_STARTMODE_t |
Defines the mode of operation of a channel, when an ongoing conversion gets interrupted in between. Use XMC_VADC_STARTMODE_t for this enumeration.
| typedef enum XMC_VADC_STATUS XMC_VADC_STATUS_t |
Defines the return status after execution of VADC specific API's. Use XMC_VADC_STATUS_t for this enumeration.
| typedef enum XMC_VADC_TRIGGER_EDGE XMC_VADC_TRIGGER_EDGE_t |
Defines the edge sensitivity of the trigger signal which can assert a conversion. Use XMC_VADC_TRIGGER_EDGE_t for this enumeration.
Defines the external trigger input selection possibilities, to assert a conversion. Refer the VADC interconnects section of the reference manual for details of peripherals which can be used. Also refer xmc_vadc_map.h file for detailed definitions of the peripherals which can take the control of these enumeration items. Use XMC_VADC_TRIGGER_INPUT_SELECT_t for this enumeration.
Defines the boundary select for Channel. Use XMC_VADC_GROUP_BOUNDARY_FLAG_MODE_t for this enumeration.
| Enumerator | |
|---|---|
| XMC_VADC_BOUNDARY_SELECT_LOWER_BOUND | Select the lower boundary |
| XMC_VADC_BOUNDARY_SELECT_UPPER_BOUND | Selects the upper boundary |
Definition at line 696 of file xmc_vadc.h.
Defines channel alias. All enum items are available for channels 0 and 1. Other Channels can accept only XMC_VADC_CHANNEL_ALIAS_DISABLED.
Definition at line 736 of file xmc_vadc.h.
Defines the references to boundary values used for limit checking feature. Each of these can be assigned as either an upper bound or a lower bound. Use XMC_VADC_CHANNEL_BOUNDARY_t for this enumeration.
Definition at line 501 of file xmc_vadc.h.
Defines the criteria for boundary flag assertion. Use XMC_VADC_CHANNEL_BOUNDARY_CONDITION_t for this enumeration.
Definition at line 545 of file xmc_vadc.h.
Defines the voltage which the capacitor is charged to. Used in Broken wire detection feature. Use XMC_VADC_CHANNEL_BWDCH_t for this enumeration.
| Enumerator | |
|---|---|
| XMC_VADC_CHANNEL_BWDCH_VAGND | Capacitor pre-charged to ground |
| XMC_VADC_CHANNEL_BWDCH_VAREF | Capacitor pre-charged to reference voltage |
Definition at line 513 of file xmc_vadc.h.
Defines the conversion classes that can be selected for each channel. The enumeration members holds the group or global classes. The conversion classes decides the properties of conversion, like resolution, sampling time etc Use XMC_VADC_CHANNEL_CONV_t for this enumeration.
Definition at line 488 of file xmc_vadc.h.
Defines the criteria for event generation by the channel. Use XMC_VADC_CHANNEL_EVGEN_t for this enumeration.
Definition at line 522 of file xmc_vadc.h.
| enum XMC_VADC_CHANNEL_NR |
Defines channel All enum items are available for channels 0 and 1.
Definition at line 720 of file xmc_vadc.h.
| enum XMC_VADC_CHANNEL_REF |
Defines the reference voltage selection for conversion. Use XMC_VADC_CHANNEL_REF_t for this enumeration.
| Enumerator | |
|---|---|
| XMC_VADC_CHANNEL_REF_INTREF | Internal VARef |
| XMC_VADC_CHANNEL_REF_ALT_CH0 | External voltage available on Channel-0 of the perticular group |
Definition at line 535 of file xmc_vadc.h.
| enum XMC_VADC_CONVMODE |
Defines the conversion mode. It defines the resolution of conversion. Use XMC_VADC_CONVMODE_t for this enumeration.
Definition at line 442 of file xmc_vadc.h.
| enum XMC_VADC_DMM |
Defines the conversion result handling mode. Use XMC_VADC_DMM_t for this enumeration.
Definition at line 431 of file xmc_vadc.h.
Defines the output of a fast compare mode. Use XMC_VADC_FAST_COMPARE_t for this enumeration.
Definition at line 454 of file xmc_vadc.h.
Defines the external gating input selection possibilities, to gate the conversion requests. Refer the VADC interconnects section of the reference manual for details of peripherals which can be used. Also refer xmc_vadc_map.h file for detailed definitions of the peripherals which can take the control of these enumeration items. Use XMC_VADC_GATE_INPUT_SELECT_t for this enumeration.
Definition at line 394 of file xmc_vadc.h.
| enum XMC_VADC_GATEMODE |
Defines the condition for gating the conversion requests. It can be used to set the ENGT field of ASMR/BSMR/QMR register respectively for auto_scan/background_scan/queue request sources. Use XMC_VADC_GATEMODE_t for this enumeration.
Definition at line 420 of file xmc_vadc.h.
Defines the event which can lead to a global service request assertion. Use XMC_VADC_GLOBAL_EVENT_t for this enumeration.
| Enumerator | |
|---|---|
| XMC_VADC_GLOBAL_EVENT_BKGNDSOURCE | Background scan request source event |
| XMC_VADC_GLOBAL_EVENT_RESULT | Global result event |
Definition at line 555 of file xmc_vadc.h.
Defines the request source arbiter behavior. Use XMC_VADC_GROUP_ARBMODE_t for this enumeration.
| Enumerator | |
|---|---|
| XMC_VADC_GROUP_ARBMODE_ALWAYS | Arbiter runs all the time |
| XMC_VADC_GROUP_ARBMODE_ONDEMAND | Arbiter runs only if a conversion request is asserted by any of the request sources |
Definition at line 594 of file xmc_vadc.h.
Defines the various modes for the boundary flag. Use XMC_VADC_GROUP_BOUNDARY_FLAG_MODE_t for this enumeration.
Definition at line 684 of file xmc_vadc.h.
| enum XMC_VADC_GROUP_CONV |
Defines the reference to sample time and conversion mode settings. Use XMC_VADC_GROUP_CONV_t for this enumeration.
| Enumerator | |
|---|---|
| XMC_VADC_GROUP_CONV_STD | Settings pertaining to channels directly attached to VADC module |
| XMC_VADC_GROUP_CONV_EMUX | Settings pertaining to channels connected to VADC via EMUX |
Definition at line 585 of file xmc_vadc.h.
Defines the EMUX channel selection encoding scheme. Use XMC_VADC_GROUP_EMUXCODE_t for this enumeration.
| Enumerator | |
|---|---|
| XMC_VADC_GROUP_EMUXCODE_BINARY | A linearly incrementing code serves are MUX-SEL |
| XMC_VADC_GROUP_EMUXCODE_GRAY | The MUX-SEL is gray encoded |
Definition at line 615 of file xmc_vadc.h.
Defines the EMUX mode of operation. Use XMC_VADC_GROUP_EMUXMODE_t for this enumeration.
Definition at line 604 of file xmc_vadc.h.
| enum XMC_VADC_GROUP_INDEX |
Defines the group indices. Use XMC_VADC_GROUP_INDEX_t for this enumeration.
| Enumerator | |
|---|---|
| XMC_VADC_GROUP_INDEX_0 | |
| XMC_VADC_GROUP_INDEX_1 | |
Definition at line 706 of file xmc_vadc.h.
| enum XMC_VADC_GROUP_IRQ |
Defines the service request set used. Use XMC_VADC_GROUP_IRQ_t for this enumeration.
| Enumerator | |
|---|---|
| XMC_VADC_GROUP_IRQ_KERNEL | Refers to Group specific service request |
| XMC_VADC_GROUP_IRQ_SHARED | Refers to Module wide service request |
Definition at line 624 of file xmc_vadc.h.
Defines the power modes of a VADC Group. Use XMC_VADC_GROUP_POWERMODE_t for this enumeration.
Definition at line 564 of file xmc_vadc.h.
Defines the request source arbitration priority. Use XMC_VADC_GROUP_RS_PRIORITY_t for this enumeration.
Definition at line 673 of file xmc_vadc.h.
| enum XMC_VADC_GROUP_STATE |
Defines the status of a VADC group (also known as kernel). Use XMC_VADC_GROUP_STATE_t for this enumeration.
| Enumerator | |
|---|---|
| XMC_VADC_GROUP_STATE_IDLE | Idle and can convert if requested |
| XMC_VADC_GROUP_STATE_BUSY | Busy with an ongoing conversion |
Definition at line 575 of file xmc_vadc.h.
Defines the alignment of the converted result. Use XMC_VADC_RESULT_ALIGN_t for this enumeration.
| Enumerator | |
|---|---|
| XMC_VADC_RESULT_ALIGN_LEFT | Always align result to left |
| XMC_VADC_RESULT_ALIGN_RIGHT | Always align result to right |
Definition at line 633 of file xmc_vadc.h.
Definition at line 650 of file xmc_vadc.h.
Definition at line 639 of file xmc_vadc.h.
| enum XMC_VADC_SCAN_LOAD |
Defines the behavior of load event for the scan request source. Use XMC_VADC_SCAN_LOAD_t for this enumeration.
Definition at line 474 of file xmc_vadc.h.
| enum XMC_VADC_SCAN_TYPE |
Defines the type of scan request source to be used. It can choose between auto scan and background scan request source methods. Use XMC_VADC_SCAN_TYPE_t for this enumeration.
Definition at line 465 of file xmc_vadc.h.
| enum XMC_VADC_SR |
Defines the various service requests lines. Each group can raise up to 4 service requests independently. While all groups together have the possibility of raising 4 module wide service requests. Use XMC_VADC_SR_t for this enumeration.
Definition at line 326 of file xmc_vadc.h.
| enum XMC_VADC_STARTMODE |
Defines the mode of operation of a channel, when an ongoing conversion gets interrupted in between. Use XMC_VADC_STARTMODE_t for this enumeration.
Definition at line 342 of file xmc_vadc.h.
| enum XMC_VADC_STATUS |
Defines the return status after execution of VADC specific API's. Use XMC_VADC_STATUS_t for this enumeration.
| Enumerator | |
|---|---|
| XMC_VADC_STATUS_SUCCESS | Returned when the API has been able to fulfill the callers request |
| XMC_VADC_STATUS_ERROR | Returned when the API cannot fulfill the request |
Definition at line 315 of file xmc_vadc.h.
Defines the edge sensitivity of the trigger signal which can assert a conversion. Use XMC_VADC_TRIGGER_EDGE_t for this enumeration.
Definition at line 353 of file xmc_vadc.h.
Defines the external trigger input selection possibilities, to assert a conversion. Refer the VADC interconnects section of the reference manual for details of peripherals which can be used. Also refer xmc_vadc_map.h file for detailed definitions of the peripherals which can take the control of these enumeration items. Use XMC_VADC_TRIGGER_INPUT_SELECT_t for this enumeration.
Definition at line 367 of file xmc_vadc.h.
| __STATIC_INLINE void XMC_VADC_GLOBAL_BackgndAddMultipleChannels | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
| const uint32_t | grp_num, | ||
| const uint32_t | ch_mask | ||
| ) |
| global_ptr | Pointer to the VADC module |
| grp_num | ID of the VADC group whose unprioritized channels have been assigned to background scan |
| ch_mask | Mask word indicating channels which form part of scan conversion sequence Bit location 0/1/2/3/4/5/6/7 represents channels-0/1/2/3/4/5/6/7 respectively. To Add the channel to the scan sequence enable the respective bit. Passing a 0x0 will clear all the previously selected channels Range: [0x0 to 0xFF] |
Definition at line 3549 of file xmc_vadc.h.
| __STATIC_INLINE void XMC_VADC_GLOBAL_BackgndRemoveMultipleChannels | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
| const uint32_t | grp_num, | ||
| const uint32_t | ch_mask | ||
| ) |
| global_ptr | Pointer to the VADC module |
| grp_num | ID of the VADC group whose unprioritized channels have been assigned to background scan |
| ch_mask | Mask word indicating channels which form part of scan conversion sequence Bit location 0/1/2/3/4/5/6/7 represents channels-0/1/2/3/4/5/6/7 respectively. To Add the channel to the scan sequence enable the respective bit. Passing a 0x0 will clear all the previously selected channels Range: [0x0 to 0xFF] |
Definition at line 3608 of file xmc_vadc.h.
| void XMC_VADC_GLOBAL_BackgroundAbortSequence | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Pointer to the VADC module |
Definition at line 1316 of file xmc_vadc.c.
| __STATIC_INLINE void XMC_VADC_GLOBAL_BackgroundAddChannelToSequence | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
| const uint32_t | grp_num, | ||
| const uint32_t | ch_num | ||
| ) |
| global_ptr | Pointer to the VADC module |
| grp_num | ID of the VADC group whose unprioritized channels have been assigned to background scan Request source |
| ch_num | The unprioritized channel meant to be added to the scan sequence Range: [0x0 to 0x7] |
Definition at line 3517 of file xmc_vadc.h.
| __STATIC_INLINE void XMC_VADC_GLOBAL_BackgroundClearReqSrcEvent | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Pointer to the VADC module |
Definition at line 3698 of file xmc_vadc.h.
| __STATIC_INLINE void XMC_VADC_GLOBAL_BackgroundDisableContinuousMode | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Pointer to the VADC module |
Definition at line 3455 of file xmc_vadc.h.
| __STATIC_INLINE void XMC_VADC_GLOBAL_BackgroundDisableEvent | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Pointer to the VADC module |
Definition at line 3803 of file xmc_vadc.h.
| __STATIC_INLINE void XMC_VADC_GLOBAL_BackgroundDisableExternalTrigger | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Pointer to the VADC module |
Definition at line 3761 of file xmc_vadc.h.
| __STATIC_INLINE void XMC_VADC_GLOBAL_BackgroundEnableContinuousMode | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Pointer to the VADC module |
Definition at line 3432 of file xmc_vadc.h.
| __STATIC_INLINE void XMC_VADC_GLOBAL_BackgroundEnableEvent | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Pointer to the VADC module |
Definition at line 3782 of file xmc_vadc.h.
| __STATIC_INLINE void XMC_VADC_GLOBAL_BackgroundEnableExternalTrigger | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Pointer to the VADC module |
Definition at line 3739 of file xmc_vadc.h.
| uint32_t XMC_VADC_GLOBAL_BackgroundGetNumChannelsPending | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Pointer to the VADC module |
Definition at line 1359 of file xmc_vadc.c.
| __STATIC_INLINE bool XMC_VADC_GLOBAL_BackgroundGetReqSrcEventStatus | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Pointer to the VADC module |
Definition at line 3719 of file xmc_vadc.h.
| void XMC_VADC_GLOBAL_BackgroundInit | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
| const XMC_VADC_BACKGROUND_CONFIG_t * | config | ||
| ) |
| global_ptr | Pointer to the VADC module |
| config | Pointer to initialization data structure |
Definition at line 1205 of file xmc_vadc.c.
| __STATIC_INLINE bool XMC_VADC_GLOBAL_BackgroundIsChannelPending | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
| const uint32_t | grp_num, | ||
| const uint32_t | ch_num | ||
| ) |
| global_ptr | Pointer to the VADC module |
| grp_num | ID of the VADC group whose unprioritized channels have been assigned to background scan RS |
| ch_num | The channel being audited for completion of conversion Range: [0x0 to 0x7] |
Definition at line 3635 of file xmc_vadc.h.
| __STATIC_INLINE void XMC_VADC_GLOBAL_BackgroundRemoveChannelFromSequence | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
| const uint32_t | grp_num, | ||
| const uint32_t | ch_num | ||
| ) |
| global_ptr | Pointer to the VADC module |
| grp_num | ID of the VADC group whose unprioritized channels have been assigned to background scan Request source |
| ch_num | The unprioritized channel meant to be added to the scan sequence Range: [0x0 to 0x7] |
Definition at line 3576 of file xmc_vadc.h.
| void XMC_VADC_GLOBAL_BackgroundSelectGating | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
| const uint32_t | input_num | ||
| ) |
| global_ptr | Pointer to the VADC module |
| input_num | Module input signal meant to be selected as gating input Accepts enum XMC_VADC_GATE_INPUT_SELECT_t |
Definition at line 1301 of file xmc_vadc.c.
| void XMC_VADC_GLOBAL_BackgroundSelectTrigger | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
| const uint32_t | input_num | ||
| ) |
| global_ptr | Pointer to the VADC module |
| input_num | Choice of the input earmarked as a trigger line Accepts enum XMC_VADC_TRIGGER_INPUT_SELECT_t |
Definition at line 1267 of file xmc_vadc.c.
| void XMC_VADC_GLOBAL_BackgroundSelectTriggerEdge | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
| const XMC_VADC_TRIGGER_EDGE_t | trigger_edge | ||
| ) |
| global_ptr | Pointer to the VADC module |
| trigger_edge | Select the trigger edge |
Definition at line 1283 of file xmc_vadc.c.
| __STATIC_INLINE void XMC_VADC_GLOBAL_BackgroundSetGatingMode | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
| XMC_VADC_GATEMODE_t | mode_sel | ||
| ) |
| global_ptr | Pointer to the VADC module |
| mode_sel | Select how the gating is applied to the background scan request source |
Details of function
Selects the gating mode of background request source.
Passage of the trigger input to the request source can be controlled via a gating signal. This API determines how the gating signal behaves, either active low or active high. If gating signal needs to ignored XMC_VADC_GATEMODE_IGNORE should be used as the mode_sel. A call to this API would configure the register bit field BRSMR.ENGT.
Definition at line 3402 of file xmc_vadc.h.
| void XMC_VADC_GLOBAL_BackgroundSetReqSrcEventInterruptNode | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
| XMC_VADC_SR_t | sr | ||
| ) |
| global_ptr | Constant pointer to the VADC module |
| sr | The service request to which the global request source event is connected. Refer XMC_VADC_SR_t enum |
Definition at line 430 of file xmc_vadc.c.
| __STATIC_INLINE void XMC_VADC_GLOBAL_BackgroundTriggerConversion | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Pointer to the VADC module |
Definition at line 3475 of file xmc_vadc.h.
| __STATIC_INLINE void XMC_VADC_GLOBAL_BackgroundTriggerReqSrcEvent | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Pointer to the VADC module |
Definition at line 3679 of file xmc_vadc.h.
| __STATIC_INLINE void XMC_VADC_GLOBAL_ClearEvent | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
| const uint32_t | event_type | ||
| ) |
| global_ptr | Constant pointer to the VADC module |
| event_type | Event that must be acknowledged Use the enum XMC_VADC_GLOBAL_EVENT_t to create a mask to be used with this argument |
Definition at line 1908 of file xmc_vadc.h.
| void XMC_VADC_GLOBAL_DisableModule | ( | void | ) |
| None |
Definition at line 172 of file xmc_vadc.c.

| __STATIC_INLINE void XMC_VADC_GLOBAL_DisableModuleClock | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Constant pointer to the VADC module. |
Definition at line 1507 of file xmc_vadc.h.
| __STATIC_INLINE void XMC_VADC_GLOBAL_DisableSleepMode | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Constant pointer to the VADC module. |
Definition at line 1546 of file xmc_vadc.h.
| __STATIC_INLINE void XMC_VADC_GLOBAL_DisableStartupCalibration | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Constant pointer to the VADC module. |
Definition at line 1663 of file xmc_vadc.h.
| void XMC_VADC_GLOBAL_EnableModule | ( | void | ) |
| None |
Definition at line 147 of file xmc_vadc.c.
Referenced by XMC_VADC_GLOBAL_Init().


| __STATIC_INLINE void XMC_VADC_GLOBAL_EnableModuleClock | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Constant pointer to the VADC module. |
Definition at line 1487 of file xmc_vadc.h.
| __STATIC_INLINE void XMC_VADC_GLOBAL_EnableSleepMode | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Constant pointer to the VADC module. |
Definition at line 1526 of file xmc_vadc.h.
| XMC_VADC_FAST_COMPARE_t XMC_VADC_GLOBAL_GetCompareResult | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Constant pointer to the VADC module |
Definition at line 359 of file xmc_vadc.c.
| __STATIC_INLINE uint32_t XMC_VADC_GLOBAL_GetDetailedResult | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Constant pointer to the VADC module. |
Definition at line 1804 of file xmc_vadc.h.
| __STATIC_INLINE XMC_VADC_RESULT_SIZE_t XMC_VADC_GLOBAL_GetResult | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Constant pointer to the VADC module. |
Definition at line 1826 of file xmc_vadc.h.
| void XMC_VADC_GLOBAL_Init | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
| const XMC_VADC_GLOBAL_CONFIG_t * | config | ||
| ) |
| global_ptr | Constant pointer to the VADC module. |
| config | Pointer to initialization data structure |
Definition at line 187 of file xmc_vadc.c.
Referenced by L0_ADC_Config().


| void XMC_VADC_GLOBAL_InputClassInit | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
| const XMC_VADC_GLOBAL_CLASS_t | config, | ||
| const XMC_VADC_GROUP_CONV_t | conv_type, | ||
| const uint32_t | set_num | ||
| ) |
| global_ptr | Constant pointer to the VADC module. |
| config | Conversion class parameter structure |
| conv_type | configure the input call for either standard conversion or EMUX related conversion. |
| set_num | Conversion class set Range: [0x0, 0x1] |
Definition at line 237 of file xmc_vadc.c.
| __STATIC_INLINE void XMC_VADC_GLOBAL_ResultInit | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
| const XMC_VADC_RESULT_CONFIG_t * | config | ||
| ) |
| global_ptr | Constant pointer to the VADC global module |
| config | Pointer to result configuration data structure |
Definition at line 1620 of file xmc_vadc.h.
| void XMC_VADC_GLOBAL_SetCompareValue | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
| const XMC_VADC_RESULT_SIZE_t | compare_val | ||
| ) |
| global_ptr | Constant pointer to the VADC module |
| compare_val | Compare value which the result of a conversion will be compared against. Range[0x0 - 0X0FFF] |
Definition at line 350 of file xmc_vadc.c.
| void XMC_VADC_GLOBAL_SetResultEventInterruptNode | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
| XMC_VADC_SR_t | sr | ||
| ) |
| global_ptr | Constant pointer to the VADC module |
| sr | The service request to which the global result event is connected. Refer XMC_VADC_SR_t enum |
Definition at line 409 of file xmc_vadc.c.
| void XMC_VADC_GLOBAL_StartupCalibration | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
| global_ptr | Constant pointer to the VADC module. |
Definition at line 261 of file xmc_vadc.c.
Referenced by L0_ADC_Config().

| __STATIC_INLINE void XMC_VADC_GLOBAL_TriggerEvent | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
| const uint32_t | event_type | ||
| ) |
| global_ptr | Constant pointer to the VADC module |
| event_type | Desired event that must be manually asserted Use the enum XMC_VADC_GLOBAL_EVENT_t to create a mask to be used with this argument |
Definition at line 1884 of file xmc_vadc.h.